package com.example.cd5160866.activityanimotion;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

/**
 * Created by cd5160866 on 16/9/7.
 */
public class TestActivityWithTheme extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.them_activity);
        findViewById(R.id.finish).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }

//    @Override
//    public void onBackPressed() {
//        super.onBackPressed();
//        overridePendingTransition(0, R.anim.slide_out_right);
//    }

//    @Override
//    public void finish() {
//        super.finish();
//        overridePendingTransition(0, R.anim.slide_out_right);
//    }
}
